﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

//Test

namespace Frogger
{
    class Automobile:MoveableEntity
    {
        

        public Automobile(Texture2D textureImage, Vector2 position, Point frameSize,
            int collisionOffset, Point currentFrame, Point sheetSize, Vector2 speed,
            int millisecondsPerFrame, string name, int scoreValue)
            : base(textureImage, position,
                frameSize, collisionOffset, currentFrame,
                sheetSize, speed, millisecondsPerFrame, name, scoreValue)
        { }

        public Automobile(Texture2D textureImage, Vector2 position, Point frameSize,
            int collisionOffset, Point currentFrame, Point sheetSize, Vector2 speed,
            string name, int scoreValue)
            : base(textureImage, position,
                frameSize, collisionOffset, currentFrame,
                sheetSize, speed, name, scoreValue)
        { }

        public Automobile(Texture2D textureImage, Vector2 position, Point frameSize,
            int collisionOffset, Point currentFrame, Point sheetSize, Vector2 speed,
            string name, int scoreValue, float scale)
            : base(textureImage, position,
                frameSize, collisionOffset, currentFrame,
                sheetSize, speed, name, scoreValue, scale)
        { }

        public void setSpeed( Vector2 frogSpeed )
        {
            this.__speed.Y = -frogSpeed.Y;
        }

        public override void Update(GameTime gameTime, Rectangle clientBounds)
        {

            this.__position += this.direction;
            base.Update(gameTime, clientBounds);
        }

    }
}
